home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / a_utils / expanded.lha / test_suite / Makefile next >
Makefile  |  1992-03-19  |  6KB  |  192 lines

  1. #
  2. #  Linear-Affine-Projective Geometry Package
  3. #
  4. #  Makefile
  5. #
  6. #  W.J.R. Longabaugh 
  7. #  University of Washington
  8. #
  9. # ***********************************************************************
  10.  
  11. DEFNAME        = c_plusplus
  12.  
  13. Z        =  ../expanded
  14. IZ        =  ../expanded/hdr
  15. SZ        =  .
  16.  
  17.  
  18. MAKEFILE     = Makefile
  19. CC         = CC
  20.  
  21. ATTIN        = /usr/local/C++/incl
  22.  
  23. INCLUDE        = -I$(IZ) -I$(ATTIN)
  24.  
  25. CFLAGS         = -g +i -D$(DEFNAME) $(INCLUDE)
  26.  
  27. LIBS        = -lm
  28.  
  29. OBJS          = $(Z)/Basis.o $(Z)/GeOb.o $(Z)/List.o $(Z)/Map.o \
  30.           $(Z)/MultiMap.o $(Z)/Matrix.o $(Z)/Object.o \
  31.           $(Z)/Scalar.o $(Z)/Space.o $(Z)/SubSet.o $(Z)/Typeout.o
  32.  
  33. SRCS        = $(SZ)/thex.C $(SZ)/testbasis.C $(SZ)/testgeob.C \
  34.           $(SZ)/testmap.C $(SZ)/testsub.C $(SZ)/testspace.C \
  35.           $(SZ)/testmulti.C
  36.  
  37. PROGS        = thex testbasis testgeob testmap \
  38.           testsub testspace testmulti
  39.  
  40. all:        $(PROGS)
  41.  
  42. clean:        
  43.         -rm -f *..c *.o __ctdt.c _err makedep *~
  44.  
  45. hardcopy:    
  46.         lpr -Plp1 $(SRCS)
  47.  
  48. # --------------------------------------------------
  49. # explicit dependency for files
  50.  
  51. thex:        $(OBJS) thex.o
  52.         $(CC) $(CFLAGS) $(OBJS) thex.o $(LIBS) -o thex
  53.  
  54. thex.o:        $(SZ)/thex.C
  55.         $(CC) $(CFLAGS) -c $(SZ)/thex.C
  56.  
  57. testbasis:    $(OBJS) testbasis.o
  58.         $(CC) $(CFLAGS) $(OBJS) testbasis.o $(LIBS) -o testbasis
  59.  
  60. testbasis.o:    $(SZ)/testbasis.C
  61.         $(CC) $(CFLAGS) -c $(SZ)/testbasis.C
  62.  
  63. testgeob:    $(OBJS) testgeob.o
  64.         $(CC) $(CFLAGS) $(OBJS) testgeob.o $(LIBS) -o testgeob
  65.  
  66. testgeob.o:    $(SZ)/testgeob.C
  67.         $(CC) $(CFLAGS) -c $(SZ)/testgeob.C
  68.  
  69. testmap:    $(OBJS) testmap.o
  70.         $(CC) $(CFLAGS) $(OBJS) testmap.o $(LIBS) -o testmap
  71.  
  72. testmap.o:    $(SZ)/testmap.C
  73.         $(CC) $(CFLAGS) -c $(SZ)/testmap.C
  74.  
  75. testsub:    $(OBJS) testsub.o
  76.         $(CC) $(CFLAGS) $(OBJS) testsub.o $(LIBS) -o testsub
  77.  
  78. testsub.o:    $(SZ)/testsub.C
  79.         $(CC) $(CFLAGS) -c $(SZ)/testsub.C
  80.  
  81. testspace:    $(OBJS) testspace.o
  82.         $(CC) $(CFLAGS) $(OBJS) testspace.o $(LIBS) -o testspace
  83.  
  84. testspace.o:    $(SZ)/testspace.C
  85.         $(CC) $(CFLAGS) -c $(SZ)/testspace.C
  86.  
  87. testmulti:    $(OBJS) testmulti.o
  88.         $(CC) $(CFLAGS) $(OBJS) testmulti.o $(LIBS) -o testmulti
  89.  
  90. testmulti.o:    $(SZ)/testmulti.C
  91.         $(CC) $(CFLAGS) -c $(SZ)/testmulti.C
  92.  
  93. # --------------------------------------------------
  94. # this creates the header file dependencies.
  95.  
  96. depend:
  97.     $(CC) -M $(INCLUDE) $(SRCS) | sort | uniq > makedep
  98.     cp $(MAKEFILE) $(MAKEFILE).sav
  99.     sed -n '1,/^# DO NOT DELETE THIS LINE/p' $(MAKEFILE).sav > $(MAKEFILE)
  100.     echo '# stuff after here goes away' >> $(MAKEFILE)
  101.     cat makedep >> $(MAKEFILE)
  102.     echo '# DEPENDENCIES MUST END AT END OF FILE' >> $(MAKEFILE)
  103.     echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> $(MAKEFILE)
  104. # DO NOT DELETE THIS LINE
  105. # stuff after here goes away
  106. testbasis.o: ../expanded/hdr/Geom.h
  107. testbasis.o: ../expanded/hdr/Lap.h
  108. testbasis.o: ../expanded/hdr/Lap1.h
  109. testbasis.o: ../expanded/hdr/List.h
  110. testbasis.o: ../expanded/hdr/Matrix.h
  111. testbasis.o: ../expanded/hdr/Object.h
  112. testbasis.o: ../expanded/hdr/Typeout.h
  113. testbasis.o: ./testbasis.C
  114. testbasis.o: /usr/local/C++/incl/math.h
  115. testbasis.o: /usr/local/C++/incl/stdio.h
  116. testbasis.o: /usr/local/C++/incl/stream.h
  117. testbasis.o: /usr/local/C++/incl/string.h
  118. testgeob.o: ../expanded/hdr/Geom.h
  119. testgeob.o: ../expanded/hdr/Lap.h
  120. testgeob.o: ../expanded/hdr/Lap1.h
  121. testgeob.o: ../expanded/hdr/List.h
  122. testgeob.o: ../expanded/hdr/Matrix.h
  123. testgeob.o: ../expanded/hdr/Object.h
  124. testgeob.o: ../expanded/hdr/Typeout.h
  125. testgeob.o: ./testgeob.C
  126. testgeob.o: /usr/local/C++/incl/math.h
  127. testgeob.o: /usr/local/C++/incl/stdio.h
  128. testgeob.o: /usr/local/C++/incl/stream.h
  129. testgeob.o: /usr/local/C++/incl/string.h
  130. testmap.o: ../expanded/hdr/Geom.h
  131. testmap.o: ../expanded/hdr/Lap.h
  132. testmap.o: ../expanded/hdr/Lap1.h
  133. testmap.o: ../expanded/hdr/List.h
  134. testmap.o: ../expanded/hdr/Matrix.h
  135. testmap.o: ../expanded/hdr/Object.h
  136. testmap.o: ../expanded/hdr/Typeout.h
  137. testmap.o: ./testmap.C
  138. testmap.o: /usr/local/C++/incl/math.h
  139. testmap.o: /usr/local/C++/incl/stdio.h
  140. testmap.o: /usr/local/C++/incl/stream.h
  141. testmap.o: /usr/local/C++/incl/string.h
  142. testmulti.o: ../expanded/hdr/Geom.h
  143. testmulti.o: ../expanded/hdr/Lap.h
  144. testmulti.o: ../expanded/hdr/Lap1.h
  145. testmulti.o: ../expanded/hdr/List.h
  146. testmulti.o: ../expanded/hdr/Matrix.h
  147. testmulti.o: ../expanded/hdr/Object.h
  148. testmulti.o: ../expanded/hdr/Typeout.h
  149. testmulti.o: ./testmulti.C
  150. testmulti.o: /usr/local/C++/incl/math.h
  151. testmulti.o: /usr/local/C++/incl/stdio.h
  152. testmulti.o: /usr/local/C++/incl/stream.h
  153. testmulti.o: /usr/local/C++/incl/string.h
  154. testspace.o: ../expanded/hdr/Geom.h
  155. testspace.o: ../expanded/hdr/Lap.h
  156. testspace.o: ../expanded/hdr/Lap1.h
  157. testspace.o: ../expanded/hdr/List.h
  158. testspace.o: ../expanded/hdr/Matrix.h
  159. testspace.o: ../expanded/hdr/Object.h
  160. testspace.o: ../expanded/hdr/Typeout.h
  161. testspace.o: ./testspace.C
  162. testspace.o: /usr/local/C++/incl/math.h
  163. testspace.o: /usr/local/C++/incl/stdio.h
  164. testspace.o: /usr/local/C++/incl/stream.h
  165. testspace.o: /usr/local/C++/incl/string.h
  166. testsub.o: ../expanded/hdr/Geom.h
  167. testsub.o: ../expanded/hdr/Lap.h
  168. testsub.o: ../expanded/hdr/Lap1.h
  169. testsub.o: ../expanded/hdr/List.h
  170. testsub.o: ../expanded/hdr/Matrix.h
  171. testsub.o: ../expanded/hdr/Object.h
  172. testsub.o: ../expanded/hdr/Typeout.h
  173. testsub.o: ./testsub.C
  174. testsub.o: /usr/local/C++/incl/math.h
  175. testsub.o: /usr/local/C++/incl/stdio.h
  176. testsub.o: /usr/local/C++/incl/stream.h
  177. testsub.o: /usr/local/C++/incl/string.h
  178. thex.o: ../expanded/hdr/Geom.h
  179. thex.o: ../expanded/hdr/Lap.h
  180. thex.o: ../expanded/hdr/Lap1.h
  181. thex.o: ../expanded/hdr/List.h
  182. thex.o: ../expanded/hdr/Matrix.h
  183. thex.o: ../expanded/hdr/Object.h
  184. thex.o: ../expanded/hdr/Typeout.h
  185. thex.o: ./thex.C
  186. thex.o: /usr/local/C++/incl/math.h
  187. thex.o: /usr/local/C++/incl/stdio.h
  188. thex.o: /usr/local/C++/incl/stream.h
  189. thex.o: /usr/local/C++/incl/string.h
  190. # DEPENDENCIES MUST END AT END OF FILE
  191. # IF YOU PUT STUFF HERE IT WILL GO AWAY
  192.